package week4;

/**
 * Created by dell on 2017/3/18.
 */
public class Ocean3Airplane implements Ocean1Swimmer, Ocean3Flyer {
    private String name;

    public Ocean3Airplane(String name) {
        this.name = name;
    }
    @Override
    public void fly() {
        System.out.printf("海上飞机 %s 在飞%n", name);
    }
    @Override
    public void swim() {
        System.out.printf("海上飞机 %s 航行海面%n", name);
    }
}
